package com.paradisecloudtech.vc.system.mvp.manager;

import com.paradisecloudtech.vc.system.mvp.bean.AddPartBean;
import com.paradisecloudtech.vc.system.mvp.bean.BookingBean;
import com.paradisecloudtech.vc.system.mvp.bean.CloseCofBean;
import com.paradisecloudtech.vc.system.mvp.bean.ConfInfoBean;
import com.paradisecloudtech.vc.system.mvp.bean.ConfsBean;
import com.paradisecloudtech.vc.system.mvp.bean.LoginResultBean;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;

public interface ApiService {

    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @POST("ucm/Login")
    Observable<LoginResultBean> requestLoginData(@Body RequestBody body);


    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @POST("GetConferences")
    Observable<ConfsBean> requestConfsData(@Body RequestBody body);

    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @POST("Booking")
    Observable<BookingBean> bookingCof(@Body RequestBody body);

    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @POST("CloseConf/{confid}")
    Observable<CloseCofBean> closeCofBean(@Body RequestBody body, @Path("confid") int confid);


    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @POST("GetConfInfo/{confid}")
    Observable<ConfInfoBean> getConfInfo(@Body RequestBody body, @Path("confid") int confid);

    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @POST("AddPariticpant/{confid}")
    Observable<AddPartBean> addPart(@Body RequestBody body, @Path("confid") int confid);

    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @POST("DisconnectPariticpant")
    Observable<AddPartBean> disconParit(@Body RequestBody body);
}
